package jdos.ints;

import jdos.Dosbox;
import jdos.hardware.IoHandler;
import jdos.hardware.Memory;
import jdos.hardware.VGA;
import jdos.misc.Log;
import jdos.types.LogSeverities;
import jdos.types.LogTypes;

public class Int10_put_pixel {

	public static void INT10_PutPixel(/*Bit16u*/int x, /*Bit16u*/int y, /*Bit8u*/short color) {

		Memory.mem_writeb(Memory.PhysMake(0xa000, y * 320 + x), color);

	}

	public static short INT10_GetPixel(/*Bit16u*/int x, /*Bit16u*/int y, /*Bit8u*/short page) {
		int color = 0;

		color = Memory.mem_readb(Memory.PhysMake(0xa000, 320 * y + x));

		return (short) color;
	}
}
